<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>File Source for db.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
											</head>
		<body>
						<h1>Source for file db.php</h1>
<p>Documentation is available at <a href="../myLiveShop/_core_db_php.html">db.php</a></p>
<div class="src-code">
<pre><ol><li><a name="a1"></a><span class="src-php">&lt;?php</span></li>
<li><a name="a2"></a><span class="src-doc">/**</span></li>
<li><a name="a3"></a><span class="src-doc"> * Базы данных</span></li>
<li><a name="a4"></a><span class="src-doc"> * </span></li>
<li><a name="a5"></a><span class="src-doc"> * Класс для работы с базами</span></li>
<li><a name="a6"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Anton Zavidov</span></li>
<li><a name="a7"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> myLiveShop</span></li>
<li><a name="a8"></a><span class="src-doc"> */</span></li>
<li><a name="a9"></a>&nbsp;</li>
<li><a name="a10"></a><span class="src-doc">/**</span></li>
<li><a name="a11"></a><span class="src-doc"> * Базовый класс для работы с базами</span></li>
<li><a name="a12"></a><span class="src-doc"> *</span></li>
<li><a name="a13"></a><span class="src-doc"> */</span></li>
<li><a name="a14"></a><span class="src-key">abstract </span><span class="src-key">class </span><a href="../myLiveShop/DB.html">DB</a> <span class="src-key">extends </span><a href="../myLiveShop/Base.html">Base</a> <span class="src-sym">{</span></li>
<li><a name="a15"></a>    <span class="src-doc">/**</span></li>
<li><a name="a16"></a><span class="src-doc">     * Тип данных число</span></li>
<li><a name="a17"></a><span class="src-doc">     *</span></li>
<li><a name="a18"></a><span class="src-doc">     */</span></li>
<li><a name="a19"></a>    <span class="src-key">const </span><a href="../myLiveShop/DB.html#constTYPE_INT">TYPE_INT</a>=<span class="src-str">&quot;int&quot;</span><span class="src-sym">;</span></li>
<li><a name="a20"></a>    <span class="src-doc">/**</span></li>
<li><a name="a21"></a><span class="src-doc">     * Тип данных строка</span></li>
<li><a name="a22"></a><span class="src-doc">     *</span></li>
<li><a name="a23"></a><span class="src-doc">     */</span></li>
<li><a name="a24"></a>    <span class="src-key">const </span><a href="../myLiveShop/DB.html#constTYPE_STRING">TYPE_STRING</a>=<span class="src-str">&quot;string&quot;</span><span class="src-sym">;</span></li>
<li><a name="a25"></a>    <span class="src-doc">/**</span></li>
<li><a name="a26"></a><span class="src-doc">     * Тип данных объект</span></li>
<li><a name="a27"></a><span class="src-doc">     *</span></li>
<li><a name="a28"></a><span class="src-doc">     */</span></li>
<li><a name="a29"></a>    <span class="src-key">const </span><a href="../myLiveShop/DB.html#constTYPE_OBJECT">TYPE_OBJECT</a>=<span class="src-str">&quot;object&quot;</span><span class="src-sym">;</span></li>
<li><a name="a30"></a>    <span class="src-doc">/**</span></li>
<li><a name="a31"></a><span class="src-doc">     * Инстанс класа</span></li>
<li><a name="a32"></a><span class="src-doc">     *</span></li>
<li><a name="a33"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">DB </span></li>
<li><a name="a34"></a><span class="src-doc">     */</span></li>
<li><a name="a35"></a>    <span class="src-key">protected </span><span class="src-key">static </span><span class="src-var">$instance</span><span class="src-sym">;</span></li>
<li><a name="a36"></a>    <span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Конект к базе данных</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a39"></a><span class="src-doc">     */</span></li>
<li><a name="a40"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodconnect">connect</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a41"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Закрываем конект к базе</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a44"></a><span class="src-doc">     */</span></li>
<li><a name="a45"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodclose">close</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a46"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Запрос к базе</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a39"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$query </span><span class="src-doc">строка запроса</span></li>
<li><a name="a50"></a><span class="src-doc">     */</span></li>
<li><a name="a51"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodquery">query</a><span class="src-sym">(</span><span class="src-var">$query</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a52"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Вставка данных</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a39"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$query </span><span class="src-doc">строка запроса</span></li>
<li><a name="a56"></a><span class="src-doc">     */</span></li>
<li><a name="a57"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodinsert">insert</a><span class="src-sym">(</span><span class="src-var">$table</span><span class="src-sym">,</span><span class="src-var">$data</span><span class="src-sym">,</span><span class="src-var">$params</span>=<span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a58"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Последний ID</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a39"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">int </span></li>
<li><a name="a62"></a><span class="src-doc">     */</span></li>
<li><a name="a63"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodlastId">lastId</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a64"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Изменение данных</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a39"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$query </span><span class="src-doc">строка запроса</span></li>
<li><a name="a68"></a><span class="src-doc">     */</span></li>
<li><a name="a69"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodupdate">update</a><span class="src-sym">(</span><span class="src-var">$table</span><span class="src-sym">,</span><span class="src-var">$data</span><span class="src-sym">,</span><span class="src-var">$where</span>=<span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a70"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Удаление данных</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a39"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$query </span><span class="src-doc">строка запроса</span></li>
<li><a name="a74"></a><span class="src-doc">     */</span></li>
<li><a name="a75"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methoddelete">delete</a><span class="src-sym">(</span><span class="src-var">$table</span><span class="src-sym">,</span><span class="src-var">$where</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a76"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Возвращает true если база подконекчена</span></li>
<li><a name="a38"></a><span class="src-doc">     * </span></li>
<li><a name="a79"></a><span class="src-doc">     */</span></li>
<li><a name="a80"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodisConnect">isConnect</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a81"></a>    /**</li>
<li><a name="a36"></a><span class="src-doc">/**</span></li>
<li><a name="a37"></a><span class="src-doc">     * Обрабатываем данные перед сохранением и возвращаем их тип</span></li>
<li><a name="a38"></a><span class="src-doc">     *</span></li>
<li><a name="a39"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$value </span><span class="src-doc">ссылка на данные</span></li>
<li><a name="a40"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span><span class="src-doc">тип данных (int/string/object) или false если не удалось определить тип</span></li>
<li><a name="a86"></a><span class="src-doc">     */</span></li>
<li><a name="a87"></a>    <span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodprepareData">prepareData</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$value</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a88"></a>        <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/is_numeric">is_numeric</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span><span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_INT</span><span class="src-sym">;</span></li>
<li><a name="a89"></a>        <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span><span class="src-var">$type</span>=<span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_STRING</span><span class="src-sym">;</span></li>
<li><a name="a90"></a>        <span class="src-key">elseif</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">) </span>|| <a href="http://www.php.net/is_object">is_object</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span><span class="src-var">$type</span>=<span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_OBJECT</span><span class="src-sym">;</span></li>
<li><a name="a91"></a>        <span class="src-key">else</span><span class="src-sym">{</span></li>
<li><a name="a92"></a>            <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></li>
<li><a name="a93"></a>        <span class="src-sym">}</span></li>
<li><a name="a94"></a>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/DB.html#methoderaseData">eraseData</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">,</span><span class="src-var">$type</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a95"></a>        <span class="src-key">return </span><span class="src-var">$type</span><span class="src-sym">;</span></li>
<li><a name="a96"></a>    <span class="src-sym">}</span></li>
<li><a name="a97"></a>    <span class="src-doc">/**</span></li>
<li><a name="a98"></a><span class="src-doc">     * Поличение инстанса класса</span></li>
<li><a name="a99"></a><span class="src-doc">     *</span></li>
<li><a name="a100"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">DB </span></li>
<li><a name="a101"></a><span class="src-doc">     */</span></li>
<li><a name="a102"></a>    <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">) </span><span class="src-sym">{</span></li>
<li><a name="a103"></a>        <span class="src-key">if </span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$instance </span>=== <span class="src-id">null</span><span class="src-sym">)</span></li>
<li><a name="a104"></a>        <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$instance </span>= <span class="src-key">new </span><span class="src-id">self</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a105"></a>        <span class="src-key">else</span></li>
<li><a name="a106"></a>        <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$instance</span><span class="src-sym">;</span></li>
<li><a name="a107"></a>    <span class="src-sym">}</span></li>
<li><a name="a108"></a>    <span class="src-doc">/**</span></li>
<li><a name="a109"></a><span class="src-doc">     * Очищаем данные в соответствии с типом</span></li>
<li><a name="a110"></a><span class="src-doc">     *</span></li>
<li><a name="a111"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$value </span><span class="src-doc">ссылка на данные</span></li>
<li><a name="a112"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$type </span><span class="src-doc">тип данных (int/string/object)</span></li>
<li><a name="a113"></a><span class="src-doc">     */</span></li>
<li><a name="a114"></a>    <span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methoderaseData">eraseData</a><span class="src-sym">(</span><span class="src-sym">&amp;</span><span class="src-var">$value</span><span class="src-sym">,</span><span class="src-var">$type</span>=<span class="src-str">'auto'</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a115"></a>        <span class="src-key">switch </span><span class="src-sym">(</span><span class="src-var">$type</span><span class="src-sym">) </span><span class="src-sym">{</span></li>
<li><a name="a116"></a>            <span class="src-key">case </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_STRING</span>:</li>
<li><a name="a117"></a>                <span class="src-var">$value</span>=<span class="src-str">'&quot;'</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/DB.html#methodescaped">escaped</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">)</span>.<span class="src-str">'&quot;'</span><span class="src-sym">;</span></li>
<li><a name="a118"></a>                <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a119"></a>            <span class="src-key">case </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_OBJECT</span>:</li>
<li><a name="a120"></a>                <span class="src-var">$value</span>=<span class="src-str">'&quot;'</span>.<a href="http://www.php.net/serialize">serialize</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">)</span>.<span class="src-str">'&quot;'</span><span class="src-sym">;</span></li>
<li><a name="a121"></a>                <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a122"></a>            <span class="src-key">case </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_INT</span>:<span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a123"></a>            <span class="src-key">case </span><span class="src-str">'auto'</span>:</li>
<li><a name="a124"></a>                <span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/is_string">is_string</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/DB.html#methoderaseData">eraseData</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_STRING</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a125"></a>                <span class="src-key">elseif</span><span class="src-sym">(</span><a href="http://www.php.net/is_numeric">is_numeric</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/DB.html#methoderaseData">eraseData</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_INT</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a126"></a>                <span class="src-key">elseif</span><span class="src-sym">(</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">) </span>|| <a href="http://www.php.net/is_object">is_object</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/DB.html#methoderaseData">eraseData</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TYPE_OBJECT</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a127"></a>                <span class="src-key">elseif</span><span class="src-sym">(</span><a href="http://www.php.net/is_bool">is_bool</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))</span><span class="src-var">$value</span>=(int)<span class="src-var">$value</span><span class="src-sym">;</span></li>
<li><a name="a128"></a>                <span class="src-key">else </span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/DB.html#methoderaseData">eraseData</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">,</span><span class="src-str">'uincom'</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a129"></a>                <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a130"></a>            <span class="src-key">default</span>:</li>
<li><a name="a131"></a>                <span class="src-comm">//если тип неизвестен кидаем исключение</span></li>
<li><a name="a132"></a>                <span class="src-key">new </span><span class="src-id"><a href="../myLiveShop/CoreExeption.html">CoreExeption</a></span><span class="src-sym">(</span><span class="src-str">'Неизвестный тип данных для обработки ('</span>.<span class="src-var">$type</span>.<span class="src-str">')'</span><span class="src-sym">,</span><span class="src-id">E_WARNING</span><span class="src-sym">,</span>__FILE__<span class="src-sym">,</span>__LINE__<span class="src-sym">,</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'type'</span>=&gt;<span class="src-var">$type</span><span class="src-sym">,</span><span class="src-str">'value'</span>=&gt;<span class="src-var">$value</span><span class="src-sym">))</span><span class="src-sym">;</span></li>
<li><a name="a133"></a>                <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a134"></a>        <span class="src-sym">}</span></li>
<li><a name="a135"></a>        <span class="src-key">return </span><span class="src-var">$value</span><span class="src-sym">;</span></li>
<li><a name="a136"></a>    <span class="src-sym">}</span></li>
<li><a name="a137"></a>    <span class="src-doc">/**</span></li>
<li><a name="a138"></a><span class="src-doc">     * Ставим апостофы</span></li>
<li><a name="a139"></a><span class="src-doc">     *</span></li>
<li><a name="a140"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$value </span></li>
<li><a name="a141"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span></li>
<li><a name="a142"></a><span class="src-doc">     */</span></li>
<li><a name="a143"></a>    <span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodapostrof">apostrof</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a144"></a>        <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span>==<span class="src-str">'`'</span><span class="src-sym">)</span><span class="src-key">return </span><span class="src-var">$value</span><span class="src-sym">;</span></li>
<li><a name="a145"></a>        <span class="src-key">return </span><span class="src-str">'`'</span>.<a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'.'</span><span class="src-sym">,</span><span class="src-str">'`.`'</span><span class="src-sym">,</span><span class="src-var">$value</span><span class="src-sym">)</span>.<span class="src-str">'`'</span><span class="src-sym">;</span></li>
<li><a name="a146"></a>    <span class="src-sym">}</span></li>
<li><a name="a147"></a>    <span class="src-doc">/**</span></li>
<li><a name="a148"></a><span class="src-doc">     * Защитить данные</span></li>
<li><a name="a149"></a><span class="src-doc">     *</span></li>
<li><a name="a150"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$value </span></li>
<li><a name="a151"></a><span class="src-doc">     */</span></li>
<li><a name="a152"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodescaped">escaped</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a153"></a>    /**</li>
<li><a name="a147"></a><span class="src-doc">/**</span></li>
<li><a name="a148"></a><span class="src-doc">     * Получить массив данных по запросу</span></li>
<li><a name="a149"></a><span class="src-doc">     *</span></li>
<li><a name="a150"></a><span class="src-doc">     * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$var </span><span class="src-doc">либо строка запроса либо ресурс</span></li>
<li><a name="a157"></a><span class="src-doc">     */</span></li>
<li><a name="a158"></a>    <span class="src-key">abstract </span><span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/DB.html#methodgetArray">getArray</a><span class="src-sym">(</span><span class="src-var">$var</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
</ol></pre>
</div>
	<p class="notes" id="credit">
		Документ создан Mon, 14 Feb 2011 01:08:35 +0200 в <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</body>
</html>